
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

package com.hlkj.pay.common;

import com.hlkj.framework.common.exception.IErrorCode;
import com.hlkj.pay.common.constants.ResultCodeConstant;

/**
 * @author lyc
 */

public enum FinanceResultCode implements IErrorCode {
    
    FINANCE_RECHARGE_CONFIG_NOT_EXIST(ResultCodeConstant.FINANCE_PREFIX + 1, "平台充值配置不存在"),
    FINANCE_RECHARGE_CONFIG_NOT_EFFECT(ResultCodeConstant.FINANCE_PREFIX + 1, "平台充值配置无效"),
    FINANCE_RECHARGE_AMOUNT_EFFECT(ResultCodeConstant.FINANCE_PREFIX + 1, "充值金额无效"),
    FINANCE_RECHARGE_WAY_EFFECT(ResultCodeConstant.FINANCE_PREFIX + 1, "支付方式无效"),

    MERCHANT_PAY_WAY_NOT_EFFECT(ResultCodeConstant.FINANCE_PREFIX + 406, "当前支付方式不支持"),
    
    ;

    /**
     * 错误码
     */
    private final Integer code;

    /**
     * 错误提示
     */
    private final String msg;
    
    FinanceResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

}
